<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <style>
        .form-control{
            /*border:0;*/
            padding-top: 10px;
            min-height: 33px;
            height: 100%;
        }
        .none{
            display:none;
        }
    </style>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('骑手信息')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['poster_name']}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('订单类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['typetext']}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('预约时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['appoints_day']}</div>
        </div>
    </div>
    
    <div class="form-group" <?php if($row['type'] == 2){echo 'style="display:none"'; } ?> >
        <label class="control-label col-xs-12 col-sm-2">{:__('发件')}地址:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['from_district']} {$row.from_poi} {$row.from_address}<br/> {$row.from_name} {$row.from_mobile}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('收件')}地址:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control" style="word-break: break-all;">{$row['to_district']} {$row.to_poi} {$row.to_address}<br/> {$row.to_name} {$row.to_mobile}</div>
        </div>
    </div>
    <div class="form-group" <?php if($row['type'] != 2){echo 'style="display:none"'; }?> >
        <label class="control-label col-xs-12 col-sm-2">{:__('取件码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <?php foreach($codearr as $k=>$v){?>
                <div class="form-control">{$v['name']}
                    <?php foreach($v['data'] as $kk=>$vv){ ?>
                        <div style="border-bottom:1px solid #8f8a8a;margin-bottom: 12px;padding-bottom:10px">
                            <div>{$vv['partition_name']}：{$vv['code']}</div>
                            <?php if($vv['data']['taketime']&&$vv['data']['error_type'] == 0){ ?>
                                <div class="<?php if(!$vv['data']['taketime']){echo'none';} ?>">取件人：{$vv['data']['takeuser']}  取件价格：{$vv['data']['price']}  取件时间：<?php echo date("Y-m-d H:i:s",$vv['data']['taketime']); ?></div>
                                <div class="<?php if(!$vv['data']['taketime']){echo'none';} ?>">取件人手机号：{$vv['data']['takeuserphone']}</div>
                                <div class="<?php if(!$vv['data']['taketime']){echo'none';} ?>">取件照片：
                                    <a href="https://img.manchengsh.com/{$vv['data']['takeimage']}" target="blank"><img style="width:100px" src="https://img.manchengsh.com/{$vv['data']['takeimage']}"></a>
                                </div>
                            <?php }else{ ?>
                                <div class="<?php if(!$vv['data']['taketime']){echo'none';} ?>">取件人：{$vv['data']['takeuser']}  取件价格：{$vv['data']['price']}  取件时间：<?php echo date("Y-m-d H:i:s",$vv['data']['taketime']); ?></div>
                                <div class="<?php if(!$vv['data']['taketime']){echo'none';} ?>">取件人手机号：{$vv['data']['takeuserphone']}</div>
                                <div class="<?php if(!$vv['data']['taketime']){echo'none';} ?>">错误情况：
                                    <?php $errtype = ['','找不到快递','已取走','信息不符','姓名电话不对']; echo($errtype[$vv['data']['error_type']]); ?>
                                     
                                </div>
                            <?php } ?>
                        </div>
                    <?php } ?>
                </div>
            <?php }?>
        </div>
    </div>
    <div class="form-group" <?php if($row['qjmoney'] == 0){echo 'style="display:none"'; } ?> >
        <label class="control-label col-xs-12 col-sm-2">取件佣金:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['qjmoney']}元</div>
        </div>    
    </div>
    <?php if($row['poster']){ ?>
        <div class="form-group" >
            <label class="control-label col-xs-12 col-sm-2">骑手:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="form-control">姓名：{$row['poster']['poster_name']} 手机号：{$row['poster']['mobile']}</div>
            </div>    
        </div>
    <?php } ?>
    <div class="form-group" <?php if($row['fwmoney'] == 0){echo 'style="display:none"'; } ?> >
        <label class="control-label col-xs-12 col-sm-2">骑手佣金:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['fwmoney']}元</div>
        </div>    
    </div>
    <div class="form-group" <?php if($row['type'] != 2){echo 'style="display:none"'; } ?> >
        <label class="control-label col-xs-12 col-sm-2">是否加急:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['valuable']}元</div>
        </div>
    </div>
    <div class="form-group" <?php if($row['type'] != 2){echo 'style="display:none"'; } ?> >
        <label class="control-label col-xs-12 col-sm-2">贵重物品是否上楼:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['upstairs']}元</div>
        </div>    
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <div class="form-control">{$row['note']}</div> -->
            <div class="form-control">{$row['remark']}</div>
        </div>
    </div>
    <?php if($row['poster']){ ?>
        <?php if($row['images']){ ?>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('骑手取件照片')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="">
                    <?php $qjzp = explode(',',$row['images']);?>
                    <?php foreach( $qjzp as $ki=>$vi){ ?>
                        <a href="{$vi}" target="blank"><img style="width:100px" src="{$vi}"></a>
                    <?php } ?>
                    </div>
                </div>
            </div>
        <?php } ?>
        <?php if($row['reach_images']){ ?>
            <div class="form-group">
                <?php if($row['type'] == 4){ ?>
                    <label class="control-label col-xs-12 col-sm-2">{:__('打包照片')}:</label>
                <?php }else{ ?>
                
                    <label class="control-label col-xs-12 col-sm-2">{:__('送达照片')}:</label>
                <?php } ?>
                <div class="col-xs-12 col-sm-8">
                    <div class="<?php if(!$row['reach_images']){echo'none';} ?>">
                    <?php $sdzp = explode(',',$row['reach_images']);?>
                    <?php foreach( $sdzp as $ki2=>$vi2){ ?>
                        <a href="{$vi2}" target="blank"><img style="width:100px" src="{$vi2}"></a>
                    <?php } ?>
                    </div>
                </div>
            </div>
        <?php } ?>
    <?php } ?>
    <div class="form-group" <?php if(!$row['express_no'] ){echo 'style="display:none"'; } ?> >
        <label class="control-label col-xs-12 col-sm-2">快递单号:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['express_no']}</div>
        </div>    
    </div>
    <div class="form-group" <?php if($row['type'] != 2){echo 'style="display:none"'; } ?> >
        <label class="control-label col-xs-12 col-sm-2">贵重物品是否上楼:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['upstairs']}元</div>
        </div>    
    </div>
    <div class="form-group" <?php if($row['type'] != 2){echo 'style="display:none"'; } ?> >
        <label class="control-label col-xs-12 col-sm-2">贵重物品是否上楼:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control">{$row['upstairs']}元</div>
        </div>    
    </div>
    
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('下单时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-control"><?php echo date("Y-m-d H:i:s",$row['createtime']);?></div>
        </div>
    </div>
   
    <!--<div class="form-group layer-footer">-->
    <!--    <label class="control-label col-xs-12 col-sm-2"></label>-->
    <!--    <div class="col-xs-12 col-sm-8">-->
    <!--        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>-->
    <!--        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
    <!--    </div>-->
    <!--</div>-->
</form>
